package com.caijin.common.core.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * Department前端展示模型
 *
 * @author Peas
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Department的VO模型", description = "院系专业VO模型")
public class DepartmentVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "对应id")
    private Long value;

    @ApiModelProperty(value = "对应name")
    private String label;

    @ApiModelProperty(value = "专业对应的院系id")
    private Long parentId;

    @ApiModelProperty(value = "系别包含的专业集合")
    private List<DepartmentVO> children;

}
